package com.knowif.enumInfo;

public enum InfoStatusEnum {
	
	DELETE(1),
	
	ISOK(0),
	
	//是收藏
	ISBECOLLECT(1),
	//没有被收藏
	ISNOTBECOLLECT(0),
	
	
	ISUSED(1),
	ISNOTUSED(0);
	
	
	
	
	private int status;

	private InfoStatusEnum(int status) {
		this.status = status;
	}
	public int getStatus() {
		return status;
	}



	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @author: xingyao 
	 * @Description:  判断信息是否被删除
	 * @param status
	 * @return
	 */
	public static boolean isDelete(int status){
		if(DELETE.getStatus() == status){
			return true;
		}
		return false;
	}
	
	/**
	 * @author: xingyao 
	 * @Description:  判断信息是否良好
	 * @param status
	 * @return
	 */
	public static boolean isOK(int status){
		if(DELETE.getStatus() == status){
			return false;
		}
		return true;
	}

}
